Quiz: Data Types

To View Tricks: Login Required

Number of Questions: 10

Question: 1 -

What is a Primitive Data Type in Java?

Options:
  1. Data type, which is implemented in an Object-oriented way.

  2. None of the above

  3. Data Type which is implemented in a non-object oriented way.

  4. Data Type which is implemented in a machine-dependent way

  5. Answer:

    Data Type which is implemented in a non-object oriented way.

    Solution not available.

Question: 2 -

which among the following is not a Data Type in Java?

Options:
  1. short

  2. int

  3. long double

  4. double

  5. Answer:

    long double

    Solution:

    "long double" is present only in C language.


Question: 3 -

Which data type among the following is an implementation of Objects or OOPs?

Options:
  1. byte

  2. None of the above

  3. int

  4. char

  5. Answer:

    None of the above

    Solution:

    All primitive data types are implemented in a Non-Object Oriented way.


Question: 4 -

Choose the wrong statement about Java programming?

Options:
  1. Java supports unsigned integers

  2. Java supports signed char

  3. None of the above

  4. Java supports signed integers

  5. Answer:

    Java supports unsigned integers

    Solution:

    Only C language supports unsigned integers. Java does not support.


Question: 5 -

What does a Data Type in Java refers to?

Options:
  1. The technique how data is retreived

  2. The type or variety of data being handled for reading and writing

  3. None of the above

  4. The place where data is stored

  5. Answer:

    The type or variety of data being handled for reading and writing

    Solution:

    Integers, Real numbers, Boolean, Characters etc